<template>
  <div class="fillup-success">
    <img class="fillup-success-img" src="@/assets/img/success.png" />
    <div class="fillup-success-text">保存成功！！<br />审核完毕可正常使用</div>
    <div class="fillup-success-redirect">
      <span class="text-primary">{{ countdown }}秒</span>后跳转到个人首页
    </div>
  </div>
</template>

<script>
import { countdownMixin } from 'mixins'
export default {
  name: 'FillupSuccess',
  mixins: [countdownMixin],
  props: {
    code: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      redirectUrl: '/home'
    }
  }
}
</script>

<style lang="scss">
@import 'styles/common.scss';
.fillup-success {
  @include absoluteCenter();
  width: 9rem;
  height: 5rem;
  background-color: #fff;
  border-radius: 0.16rem;
  text-align: center;
  .fillup-success-img {
    margin-top: 0.71rem;
    width: 1.56rem;
  }
  .fillup-success-text {
    margin-top: 0.45rem;
    font-size: 0.3rem;
    line-height: 1.5em;
    color: $colorText1;
  }
  .fillup-success-tip {
    margin-top: 0.1rem;
    font-size: 0.16rem;
    color: $colorText1;
  }
  .fillup-success-redirect {
    margin-top: 0.41rem;
    font-size: 0.16rem;
    color: $colorText2;
  }
}
</style>
